package com.bit.blog.pojo.request;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class UserLoginRequest {
    @NotBlank(message = "用户名不能为空")
    @Size(min=1,max=20,message = "用户名长度必须在1~20个字符之间")
    private String userName;
    @NotBlank(message = "密码不能为空")
    private String password;
}
